import { defineStore } from "pinia";
import { AuthState } from "@/stores/interface";
export const useAuthStore = defineStore({
  id: "auth",
  state: (): AuthState => ({
    authMenuList: []
  }),
  getters: {
    // 菜单权限列表 ==> 这里的菜单没有经过任何处理
    authMenuListGet: state => state.authMenuList
  },
  actions: {
    setAuthMenuList(authMenuList) {
      this.authMenuList = authMenuList;
    }
  },
  persist: false
});
